skynet = require "skynet"

skynet.register_protocol {         --注册system消息
    name = "system",
    id = skynet.PTYPE_SYSTEM,
    pack = skynet.pack,
    unpack = skynet.unpack
}
skynet.start(function()
    local othermsg = skynet.localname(".othermsg")
    --local r = skynet.unpack(skynet.rawcall(othermsg, "system", skynet.pack(1, "nengzhong", true)))
    --使用skynet.call的时候必须要在skynet.register_protocol指定pack与unpack
    local r = skynet.call(othermsg, "system", 1, "nengzhong", true)
    skynet.error("skynet.call return value:", r)   
        
end)